{% extends "base.html" %}

{% block title %}Welcome to iCoach{% endblock %}

{% block content %}   
    <div class="content"><!--BEGIN CONTENT-->
        <div class="admin">
            
            <div class="ad_top"><h3>Current Users</h3></div>
            <div class="ad_middle">                                           
                <ol style="padding-left: 10px;">
					<table class="userlist">
						<th>User</th>
						<th>Edit</th>
						<th>Messages</th>
		                {% for u in userList %}
		                <tr>
		                	<td>{{ u }}</td>
							<td><a href="/profile/{{ user }}">Edit</a></td>
							<td><a href="/profile/{{ user }}/messages">Show</a></td>
						</tr>
		                {% endfor %}
					</table>
                </ol>               
            </div>                           
            <div class="ad_bottom"></div>                                     
        </div>
        
	    <div class="col4">
    	    <div class="box_top"></div>                	
            <div class="box_middle">
			    <h3 style="color: #014586; text-align: center;">System Messages</h3>
			    <img style="margin-left: 10px;"alt="divider" src="/media/img/hr.png" />
			    <textarea style="margin: 10px 0 0 10px;" name="system" rows="10" cols="25"></textarea>
            </div>
            <div class="box_bottom"></div>  
            
            <div class="box2_top"><h3>Report A Problem</h3></div>
            <div class="box2_middle">
            	<form action="/admin/reportbug/" method="post">                                      
	                <table style="margin-bottom: 10px;">
	                    <tr>
	                        <td style="padding-left: 10px;">Subject: <input type="text" name="report_subj" /><br /></td></tr>
	                    <tr><td>&nbsp;</td></tr>
	                    <tr>
	                        <td>Message: <textarea name="report_msg" rows="3" cols="20"></textarea></td></tr>                            
	                </table>
					<input value="Submit" type="submit" style="margin-left: 190px;" />	                
				</form>                			
		    </div>
            <div class="box2_bottom"></div>                                  	               
        </div>                         
        
    </div><!--END CONTENT-->    
{% endblock %}
